*** Variables ***
${Data_toolbar_UploadButton}    xpath=//button[.='Upload']
# ${Data_toolbar_UploadButton}    xpath=/html/body/div[1]/div/div/div/div[2]/form/div/fieldset[1]/div[1]/button
${Data_toolbar_CloseButton}    xpath=//button[@class='btn btn-primary small-space-left']
${Data_toolbar_StartButton}    xpath=//button[.='Start']
${Data_toolbar_DownloadButton}    xpath=//button[.='Download']
${Data_toolbar_UploadAfterStartButton}    xpath=//div[@class='row form-group col-md-12 ng-scope']/button[.='Upload']
${Data_toolbar_SetPassButton}    xpath=//button[.='Set Pass']

######### New Dialog/popup (upload/close)
${Data_Upload_AddFile}    xpath=//span[@class='btn fileinput-button']
# ${Data_Upload_AddFile}    css=[type='file']
# ${Data_Upload_AddFile}    xpath=/html/body/div[1]/div/div/div/div[2]/section/div/div/div/div/ng-form/span[2]/input
${Close_Warning_Text}    xpath=//span[.='Are you sure to close this page?']
${YesCloseButton}    xpath=//button[@class='btn ng-scope']
${NoCloseButton}    xpath=//button[@class='btn ng-scope btn-primary']

${Select_By_Location}    xpath=//input[@class='ng-pristine ng-valid ng-not-empty ng-touched']
${Select_By_Port}    xpath=//input[@value='port']
# Step1

# Step2
${DataCleaning_MappingColumns}    xpath=//legend[.='Step2: Mapping Columns']
# Step3
${DataCleaning_Validation}    xpath=//legend[.='Step3: Validation']
# Step4
${DataCleaning_AddintoIPT}    xpath=//legend[.='Step4: Add into Internal Pricing Template']
${DataCleaning_DownloadAfterGeneSucc}    xpath=//button[.='Download']
${DataCleaning_StartButton_Step4}    xpath=//button[@class='btn ']
${DataCleaning_DownloadButton_Step4}    xpath=//form[@name='pricingForm']/div[2]//button[.='Download']
${DataCleaning_UploadButton_Step4}    xpath=//form[@name='pricingForm']/div[2]//button[contains(.,'Upload')]
# Step5
${DataCleaning_SendtoGPD}    xpath=//legend[contains(.,'Step5: Send to GPD')]
${DataCleaning_SkipButton}    xpath=//button[.='Skip']
${DataCleaning_StartButton_Step5}    xpath=//button[.='Start']


############# FCL Mapping Columns by location/port
${Origin_Country}    xpath=//fieldset[2]/div[@class='row']/div[1]//select[@id='fileHeader']
${Destination_Country}    xpath=//fieldset[2]//div[2]//select[@id='fileHeader']
${Origin_City}    xpath=//fieldset[2]//div[3]//select[@id='fileHeader']
${Destination_City}    xpath=//fieldset[2]//div[4]//select[@id='fileHeader']
${Origin_State}    xpath=//fieldset[2]//div[5]//select[@id='fileHeader']
${Destination_State}    xpath=//fieldset[2]//div[6]//select[@id='fileHeader']
${Origin_Type}    xpath=//fieldset[2]//div[7]//select[@id='fileHeader']
${Destination_Type}    xpath=//fieldset[2]//div[8]//select[@id='fileHeader']

${Origin_Postal_Code}    xpath=//fieldset[2]//div[9]//select[@id='fileHeader']
${Destination_Postal_Code}    xpath=//fieldset[2]//div[10]//select[@id='fileHeader']
${Customer_Deliver_Term}    xpath=//fieldset[2]//div[11]//select[@id='fileHeader']

${Customer_Port_of_Load}    xpath=//fieldset[2]//div[12]//select[@id='fileHeader']
${Customer_Port_of_Discharge}    xpath=//fieldset[2]//div[13]//select[@id='fileHeader']
${Customer_Orign_Place}    xpath=//fieldset[2]//div[12]//select[@id='fileHeader']
${Customer_Destination_Place}    xpath=//fieldset[2]//div[13]//select[@id='fileHeader']

${Customer_Lane_ID}    xpath=//div[14]//select[@id='fileHeader']
${Volume_Containers_20}    xpath=//div[15]//select[@id='fileHeader']
${Volume_Containers_40}    xpath=//div[16]//select[@id='fileHeader']
${Volume_Containers_40HC}    xpath=//div[17]//select[@id='fileHeader']
${Volume_Containers_45}    xpath=//div[18]//select[@id='fileHeader']
${Volume_TEU_Total}    xpath=//div[19]//select[@id='fileHeader']
${Commodity_Desc}    xpath=//div[20]//select[@id='fileHeader']
${IMO_Class}    xpath=//div[21]//select[@id='fileHeader']
${IMO_UN_No}    xpath=//div[22]//select[@id='fileHeader']

# ######## Air Mapping Columns by location
${Origin_Port}    xpath=//fieldset[2]//div[3]//select[@id='fileHeader']
${Destination_Port}    xpath=//fieldset[2]//div[4]//select[@id='fileHeader']
${DB_Schenker_Service_Level}    xpath=//fieldset[2]//div[7]//select[@id='fileHeader']
${Customer_Service_Level}    xpath=//fieldset[2]//div[8]//select[@id='fileHeader']
${MD/LD}    xpath=//fieldset[2]//div[9]//select[@id='fileHeader']
${Air_Customer_Lane_ID}    xpath=//fieldset[2]//div[10]//select[@id='fileHeader']
${Air_Origin_Type}    xpath=//fieldset[2]//div[11]//select[@id='fileHeader']
${Air_Destination_Type}    xpath=//fieldset[2]//div[12]//select[@id='fileHeader']
${Air_Origin_Postal_Code}    xpath=//fieldset[2]//div[13]//select[@id='fileHeader']
${Air_Destination_Postal_Code}    xpath=//div[14]//select[@id='fileHeader']
${Customer_Origin_Airport}    xpath=//div[15]//select[@id='fileHeader']
${Customer_Destination_Airport}    xpath=//div[16]//select[@id='fileHeader']
${Customer_Origin_Place}    xpath=//div[15]//select[@id='fileHeader']
${AirCustomer_Destination_Place}    xpath=//div[16]//select[@id='fileHeader']
${Number_of_Shipments}    xpath=//div[17]//select[@id='fileHeader']
${Volume_cbm}    xpath=//div[18]//select[@id='fileHeader']
${Actual_Weight_in_Kg}    xpath=//div[19]//select[@id='fileHeader']
${Chargeable_Weight_in_Kg}    xpath=//div[20]//select[@id='fileHeader']
${Air_Commodity_Desc}    xpath=//div[21]//select[@id='fileHeader']
${Commodity_Remarks}    xpath=//div[22]//select[@id='fileHeader']
${DGR_Class}    xpath=//div[23]//select[@id='fileHeader']
${DGR_UN_No}    xpath=//div[24]//select[@id='fileHeader']
${DGR_PAX/CAO}    xpath=//div[25]//select[@id='fileHeader']
${Transit_Time_DTA_inHours}    xpath=//div[26]//select[@id='fileHeader']
${Transit_Time_ATA_inHours}    xpath=//div[27]//select[@id='fileHeader']
${Transit_Time_ATD_inHours}    xpath=//div[28]//select[@id='fileHeader']
${Transit_Time_DTD_inHours}    xpath=//div[29]//select[@id='fileHeader']

######### LCL/Air/FCL Mapping Columns by port
# city
${Origin_Port}    xpath=//fieldset[2]//div[3]//select[@id='fileHeader']
${Dest_Port}    xpath=//fieldset[2]//div[4]//select[@id='fileHeader']

######### LCL Mapping Columns by port
# CFS
${LCL_Place_Origin}    xpath=//fieldset[2]//div[13]//select[@id='fileHeader']
${LCL_Place_Dest}    xpath=//div[14]//select[@id='fileHeader']

######### LCL Mapping Columns by location
${LCL_Customer_Lane_ID}    xpath=//fieldset[2]//div[11]//select[@id='fileHeader']
${LCL_Customer_Deliver_Term}    xpath=//fieldset[2]//div[12]//select[@id='fileHeader']
${Origin_CFS}    xpath=//fieldset[2]//div[13]//select[@id='fileHeader']
${Destination_CFS}    xpath=//div[14]//select[@id='fileHeader']
${LCL_Number_of_Shipments}    xpath=//div[15]//select[@id='fileHeader']
${LCL_Weight_in_Metric_Tons}    xpath=//div[16]//select[@id='fileHeader']
${LCL_Volume_in_cbm}    xpath=//div[17]//select[@id='fileHeader']
${LCL_Commodity_Desc}    xpath=//div[18]//select[@id='fileHeader']
${LCL_IMO_Class}    xpath=//div[19]//select[@id='fileHeader']
${LCL_IMO_UN_No}    xpath=//div[20]//select[@id='fileHeader']


######### SUMMARY
${Summary_Succ}    xpath=//span[.='Successful']
${Summary_Text}    set variable    xpath=//div[@class='row form-group col-md-12 ng-binding ng-scope']


### FCL

### FCL/ARI COMMON CheckBox
${FCL/AIR_CheckBox_OriginCountry}    xpath=//label[contains(.,'Origin Country')]
${FCL/AIR_CheckBox_DestinationCountry}    xpath=//label[contains(.,'Destination Country')]
${FCL/AIR_CheckBox_OriginPort}    xpath=//label[contains(.,'Origin Port')]
${FCL/AIR_CheckBox_DestinationPort}    xpath=//label[contains(.,'Destination Port')]
${FCL/AIR_CheckBox_OriginType}    xpath=//label[contains(.,'Origin Type')]
${FCL/AIR_CheckBox_DestType}    xpath=//label[contains(.,'Destination Type')]
${FCL/AIR_CheckBox_OriginPostalCode}    xpath=//label[contains(.,'Origin Postal Code')]
${FCL/AIR_CheckBox_DestiPostalCode}    xpath=//label[contains(.,'Destination Postal Code')]
${FCL/AIR_CheckBox_CustomerLaneID}    xpath=//label[contains(.,'Customer Lane ID')]
${FCL/AIR_CheckBox_CommDesc}    xpath=//label[contains(.,'Commodity Description')]
${FCL/AIR_CheckBox_Place Origin}    xpath=//label[contains(.,'Place Origin')]
${FCL/AIR_CheckBox_Place Destination}    xpath=//label[contains(.,'Place Destination')]

### FCL CHECKBOX
${FCL_CheckBox_CustomerDelTerm}    xpath=//label[contains(.,'Customer’s Delivery Term')]
${FCL_CheckBox_CustomerPortofDischarge}    xpath=//label[contains(.,'Customer Port of Discharge')]
${FCL_CheckBox_CustomerPortofLoad}    xpath=//label[contains(.,'Customer Port of Load')]
${FCL_CheckBox_VolumeCont20}    xpath=//label[contains(.,'Volume Containers 20')]
${FCL_CheckBox_VolumeCont40}     xpath=//label[contains(.,'Volume Containers 40')]
${FCL_CheckBox_VolumeCont40HC}    xpath=//label[contains(.,'Volume Containers 40HC')]
${FCL_CheckBox_VolumeCont45}    xpath=//label[contains(.,'Volume Containers 45')]
${FCL_CheckBox_VolumeTEUTotal}    xpath=//label[contains(.,'Volume TEU Total')]
${FCL_CheckBox_IMOClass}    xpath=//label[contains(.,'IMO Class')]
${FCL_CheckBox_IMOUNNo}    xpath=//label[contains(.,'IMO UN No.')]

### AIR CheckBox
${AIR_CheckBox_NoOfShipments}    xpath=//label[contains(.,'Number of Shipments')]
${AIR_CheckBox_Weight in Metric Tons}    xpath=//label[contains(.,'Weight in Metric Tons')]
${AIR_CheckBox_VolumeCBM}    xpath=//label[contains(.,'Volume (cbm)')]
${AIR_CheckBox_Volume in cbm}    xpath=//label[contains(.,'Volume in cbm')]
${AIR_CheckBox_ActWghtInKg}    xpath=//label[contains(.,'Actual weight in kg')]
${AIR_CheckBox_ChrgWghtInKg}    xpath=//label[contains(.,'Chargeable weight in kg')]
${AIR_CheckBox_DGRClass}    xpath=//label[contains(.,'DGR Class')]
${AIR_CheckBox_DGRUNNo}    xpath=//label[contains(.,'DGR UN No.')]
${AIR_CheckBox_DGRPAX/CAO}    xpath=//label[contains(.,'DGR PAX/CAO')]
${AIR_CheckBox_DTA}    xpath=//label[contains(.,'Transit Time Door to Airport in hours')]
${AIR_CheckBox_ATA}    xpath=//label[contains(.,'Transit Time Airport to Airport in hours')]
${AIR_CheckBox_ATD}    xpath=//label[contains(.,'Transit Time Airport to Door in hours')]
${AIR_CheckBox_DTD}    xpath=//label[contains(.,'Transit Time Door to Door in hours')]
${AIR_CheckBox_CommdRemarks}    xpath=//label[contains(.,'Commodity Remarks')]
${AIR_CheckBox_CustomerServiceLevel}    xpath=//label[contains(.,'Customer Service Level')]
${AIR_CheckBox_DBServiceLevel}    xpath=//label[contains(.,'DB Schenker Service Level')]
${AIR_CheckBox_MD/LD}    xpath=//label[contains(.,'MD/LD')]
${AIR_CheckBox_CustomerOrginPort}    xpath=//label[contains(.,'Customer Origin Airport')]
${AIR_CheckBox_CustomerDestionaPort}    xpath=//label[contains(.,'Customer Destination Airport')]
${AIR_CheckBox__OriginState}     xpath=//label[contains(.,'Origin State')]
${AIR_CheckBox__DestinationState}    xpath=//label[contains(.,'Destination State')]
${AIR_CheckBox_CustomerOrginPlace}    xpath=//label[contains(.,'Customer Origin Place')]
${AIR_CheckBox_CustomerDestinationPlace}    xpath=//label[contains(.,'Customer Destination Place')]

${SelectOptionXPath}    /following-sibling::select[@id='fileHeader']

###FCL/AIR SELECT XPATH
${FCL/AIR_Select_OriginCountry}    ${FCL/AIR_CheckBox_OriginCountry}${SelectOptionXPath}
${FCL/AIR_Select_DestinationCountry}    ${FCL/AIR_CheckBox_DestinationCountry}${SelectOptionXPath}
${FCL/AIR_Select_OriginPort}    ${FCL/AIR_CheckBox_OriginPort}${SelectOptionXPath}
${FCL/AIR_Select_DestinationPort}    ${FCL/AIR_CheckBox_DestinationPort}${SelectOptionXPath}
${FCL/AIR_Select_OriginType}    ${FCL/AIR_CheckBox_OriginType}${SelectOptionXPath}
${FCL/AIR_Select_DestType}    ${FCL/AIR_CheckBox_DestType}${SelectOptionXPath}
${FCL/AIR_Select_OriginPostalCode}    ${FCL/AIR_CheckBox_OriginPostalCode}${SelectOptionXPath}
${FCL/AIR_Select_DestiPostalCode}    ${FCL/AIR_CheckBox_DestiPostalCode}${SelectOptionXPath}
${FCL/AIR_Select_CustomerLaneID}    ${FCL/AIR_CheckBox_CustomerLaneID}${SelectOptionXPath}
${FCL/AIR_Select_CommDesc}     ${FCL/AIR_CheckBox_CommDesc}${SelectOptionXPath}

###FCL Mapping Columns by location/port
${FCL_Select_Origin_State}    xpath=//label[contains(.,'Origin State')]${SelectOptionXPath}
${FCL_Select_Destination_State}    xpath=//label[contains(.,'Destination State')]${SelectOptionXPath}
${FCL_Select_CustomerDelTerm}    ${FCL_CheckBox_CustomerDelTerm}${SelectOptionXPath}
${FCL_Select_CustomerPortofDischarge}    ${FCL_CheckBox_CustomerPortofDischarge}${SelectOptionXPath}
${FCL_Select_VolumeCont20}    ${FCL_CheckBox_VolumeCont20}${SelectOptionXPath}
${FCL_Select_VolumeCont40}     ${FCL_CheckBox_VolumeCont40}${SelectOptionXPath}
${FCL_Select_VolumeCont40HC}    ${FCL_CheckBox_VolumeCont40HC}${SelectOptionXPath}
${FCL_Select_VolumeCont45}    ${FCL_CheckBox_VolumeCont45}${SelectOptionXPath}
${FCL_Select_VolumeTEUTotal}    ${FCL_CheckBox_VolumeTEUTotal}${SelectOptionXPath}
${FCL_Select_IMOClass}    ${FCL_CheckBox_IMOClass}${SelectOptionXPath}
${FCL_Select_IMOUNNo}    ${FCL_CheckBox_IMOUNNo}${SelectOptionXPath}
# ${FCL_Select_CustomerOrginPlace}    ${FCL_CheckBox_CustomerOrginPlace}${SelectOptionXPath}
# ${FCL_Select_CustomerDestionPlace}    ${FCL_CheckBox_CustomerDestionaPlace}${SelectOptionXPath}

###AIR mapping column
${AIR_Select_OriginCity}    xpath=//label[contains(.,'Origin City')]${SelectOptionXPath}
${AIR_Select_DestinationCity}    xpath=//label[contains(.,'Destination City')]${SelectOptionXPath}
${AIR_Select_NoOfShipments}    ${AIR_CheckBox_NoOfShipments}${SelectOptionXPath}
${AIR_Select_VolumeCBM}    ${AIR_CheckBox_VolumeCBM}${SelectOptionXPath}
${AIR_Select_ActWghtInKg}    ${AIR_CheckBox_ActWghtInKg}${SelectOptionXPath}
${AIR_Select_ChrgWghtInKg}    ${AIR_CheckBox_ChrgWghtInKg}${SelectOptionXPath}
${AIR_Select_DGRClass}    ${AIR_CheckBox_DGRClass}${SelectOptionXPath}
${AIR_Select_DGRUNNo}    ${AIR_CheckBox_DGRUNNo}${SelectOptionXPath}
${AIR_Select_DGRPAX/CAO}    ${AIR_CheckBox_DGRPAX/CAO}${SelectOptionXPath}
${AIR_Select_DTA}    ${AIR_CheckBox_DTA}${SelectOptionXPath}
${AIR_Select_ATA}    ${AIR_CheckBox_ATA}${SelectOptionXPath}
${AIR_Select_ATD}    ${AIR_CheckBox_ATD}${SelectOptionXPath}
${AIR_Select_DTD}    ${AIR_CheckBox_DTD}${SelectOptionXPath}
${AIR_Select_CommdRemarks}    ${AIR_CheckBox_CommdRemarks}${SelectOptionXPath}
${AIR_Select_CustomerServiceLevel}    ${AIR_CheckBox_CustomerServiceLevel}${SelectOptionXPath}
${AIR_Select_DBServiceLevel}    ${AIR_CheckBox_DBServiceLevel}${SelectOptionXPath}
${AIR_Select_MD/LD}    ${AIR_CheckBox_MD/LD}${SelectOptionXPath}
${AIR_Select_CustomerOrginPort}    ${AIR_CheckBox_CustomerOrginPort}${SelectOptionXPath}
${AIR_Select_CustomerDestionaPort}    ${AIR_CheckBox_CustomerOrginPort}${SelectOptionXPath}

######### SUMMARY
${Summary_Succ}    xpath=//span[.='Successful']
${Summary_Text}    xpath=//div[@class='row form-group col-md-12 ng-binding ng-scope']

${LaneMgmt_FCLL_CloseButton}    css=[data-ng-click='closeModel()']
